package com.ys.entity.hr;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TB_MedicalInsurance", catalog="Id")
public class TbMedicalInsurance extends BaseEntity<TbMedicalInsurance> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MiBase", nameJava="miBase", typeDataBase="decimal")
	private BigDecimal miBase;
	@YsField(nameDataBase="MiRatioUnit", nameJava="miRatioUnit", typeDataBase="decimal")
	private BigDecimal miRatioUnit;
	@YsField(nameDataBase="MiUnitMoonth", nameJava="miUnitMoonth", typeDataBase="decimal")
	private BigDecimal miUnitMoonth;
	@YsField(nameDataBase="MiRatioIndividual", nameJava="miRatioIndividual", typeDataBase="decimal")
	private BigDecimal miRatioIndividual;
	@YsField(nameDataBase="MiIndividualMonth", nameJava="miIndividualMonth", typeDataBase="decimal")
	private BigDecimal miIndividualMonth;
	@YsField(nameDataBase="MaternityinsuranceRatioUnit", nameJava="maternityinsuranceRatioUnit", typeDataBase="decimal")
	private BigDecimal maternityinsuranceRatioUnit;
	@YsField(nameDataBase="MiUnitMonth", nameJava="miUnitMonth", typeDataBase="decimal")
	private BigDecimal miUnitMonth;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TbMedicalInsurance setId(Long id) {
		this.id = id;
		return this;
	}
	public BigDecimal getMiBase() {
		return miBase;
	}
	public TbMedicalInsurance setMiBase(BigDecimal miBase) {
		this.miBase = miBase;
		return this;
	}
	public BigDecimal getMiRatioUnit() {
		return miRatioUnit;
	}
	public TbMedicalInsurance setMiRatioUnit(BigDecimal miRatioUnit) {
		this.miRatioUnit = miRatioUnit;
		return this;
	}
	public BigDecimal getMiUnitMoonth() {
		return miUnitMoonth;
	}
	public TbMedicalInsurance setMiUnitMoonth(BigDecimal miUnitMoonth) {
		this.miUnitMoonth = miUnitMoonth;
		return this;
	}
	public BigDecimal getMiRatioIndividual() {
		return miRatioIndividual;
	}
	public TbMedicalInsurance setMiRatioIndividual(BigDecimal miRatioIndividual) {
		this.miRatioIndividual = miRatioIndividual;
		return this;
	}
	public BigDecimal getMiIndividualMonth() {
		return miIndividualMonth;
	}
	public TbMedicalInsurance setMiIndividualMonth(BigDecimal miIndividualMonth) {
		this.miIndividualMonth = miIndividualMonth;
		return this;
	}
	public BigDecimal getMaternityinsuranceRatioUnit() {
		return maternityinsuranceRatioUnit;
	}
	public TbMedicalInsurance setMaternityinsuranceRatioUnit(BigDecimal maternityinsuranceRatioUnit) {
		this.maternityinsuranceRatioUnit = maternityinsuranceRatioUnit;
		return this;
	}
	public BigDecimal getMiUnitMonth() {
		return miUnitMonth;
	}
	public TbMedicalInsurance setMiUnitMonth(BigDecimal miUnitMonth) {
		this.miUnitMonth = miUnitMonth;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TbMedicalInsurance setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TbMedicalInsurance setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TbMedicalInsurance setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TbMedicalInsurance tbMedicalInsurance(
		BigDecimal miBase,
		BigDecimal miRatioUnit,
		BigDecimal miUnitMoonth,
		BigDecimal miRatioIndividual,
		BigDecimal miIndividualMonth,
		BigDecimal maternityinsuranceRatioUnit,
		BigDecimal miUnitMonth,
		Integer status
			) {
		TbMedicalInsurance entity = new TbMedicalInsurance();
		entity.setMiBase(miBase);
		entity.setMiRatioUnit(miRatioUnit);
		entity.setMiUnitMoonth(miUnitMoonth);
		entity.setMiRatioIndividual(miRatioIndividual);
		entity.setMiIndividualMonth(miIndividualMonth);
		entity.setMaternityinsuranceRatioUnit(maternityinsuranceRatioUnit);
		entity.setMiUnitMonth(miUnitMonth);
		entity.setStatus(status);
		return entity;
	}
}